package com.test.pattern.visitor;

/**
 * @ClassName: Owner
 * @description: 具体访问者角色(自己)
 * @author: Mr du
 * @create: 2024-03-17 22:36
 */
public class Owner implements Person {

    @Override
    public void feed(Cat cat) {
        System.out.println("主人喂食猫");
    }

    @Override
    public void feed(Dog dog) {
        System.out.println("主人喂食狗");
    }
}
